<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<h3>需求：输出用户信息，声明状态对象</h3>
<table border="1" cellspacing="0" class="table table-bordered">
    <tr>
        <td>id</td>
        <td>name</td>
        <td>pwd</td>
        <td>性别</td>
        <td>生日</td>
    </tr>
    <tr th:each="user, iter:${lists}">
        <td th:text="${user.uid}"></td>
        <td th:text="${user.uname}"></td>
        <td th:text="${user.upwd}"></td>
        <td th:text="${user.sex}"></td>
        <td th:text="${user.birthday}"></td>
    </tr>
</table>
</body>
</html>

